package com.grt.common.convert.impl;

import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Component;

import com.grt.admin.domain.ArticleType;
import com.grt.admin.domain.dto.ArticleTypeDTO;
import com.grt.common.convert.DTOConvertDO;

@Component
public class ArticleTypeDTOConvertDO implements DTOConvertDO<ArticleTypeDTO, ArticleType> {

	@Override
	public ArticleType convert(ArticleTypeDTO articleTypeDTO) {
		ArticleType oArticleType = new ArticleType();
		BeanUtils.copyProperties(articleTypeDTO, oArticleType);
		return oArticleType;
	}

}
